/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.NhomThuoc;

/**
 *
 * @author QuocDat
 */
public interface NhomThuocBO {

    /**
     * Get all NhomThuoc
     * @return
     * @throws Exception 
     */
    List<NhomThuoc> getAll() throws Exception;
    
    /**
     * Get NhomThuoc by MaNhom
     * @param maNhom
     * @return
     * @throws Exception 
     */
    NhomThuoc getById(int maNhom) throws Exception;
    
    /**
     * Get NhomThuoc by TenNhom
     * @param tenNhom
     * @return
     * @throws Exception 
     */
    List<NhomThuoc> getByTenNhom(String tenNhom) throws Exception;
    
    /**
     * Get NhomThuoc by TrangThai
     * @param trangThai
     * @return
     * @throws Exception 
     */
    List<NhomThuoc> getByTrangThai(boolean trangThai) throws Exception;
    
    /**
     * Insert NhomThuoc
     * @param nhomThuoc
     * @return
     * @throws Exception 
     */
    boolean insertNhomThuoc(NhomThuoc nhomThuoc) throws Exception;
    
    /**
     * Update NhomThuoc
     * @param nhomThuoc
     * @return
     * @throws Exception 
     */
    boolean updateNhomThuoc(NhomThuoc nhomThuoc) throws Exception;
}
